<?php

class MapMapper extends AbstractMapper
{

    protected function _init()
    {
	$this->setModel(new MapModel());
	$this->setTableName(MAP_TABLE);	
    }
    public function removeRelations($id)
    {
	if (!$id) {
	    return false;
	}
	$this->createSqlCommand()->delete('opinion_link_map', 'map_id = :map_id', array(':map_id' => $id));
	$this->createSqlCommand()->delete('review_link_map', 'map_id = :map_id', array(':map_id' => $id));
    }

}
